package test;

public class Grade implements Cloneable {
    public int chinese;
    public int math;
    public int english;
    public int gradeSum() {
        return this.chinese + this.math + this.english;
    }
    public Grade(int chinese, int math, int english) {
        this.chinese = chinese;
        this.math = math;
        this.english = english;
    }
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    public String toString() {
        return "chinese = " + this.chinese + " | math = " + this.math + " english = " + english;
    }
}
